package com.xuecheng.content.common.feign;

import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "farming")
public interface GetTokenFeign {
    @PostMapping(value = "/farming/generatetoken")
    RestResponse<String> generateToken(@RequestParam("origin")String origin,
                                              @RequestBody Map<String,Object> params);
}
